package com.dailyblue.example.springcloud.consumer.feign.feign;

import com.dailyblue.example.springcloud.commons.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "cloud-example-provider")
public interface ConsumerFeign {
    @GetMapping("/provider/a")
    JsonResult a();

    // 不支持
   /* @GetMapping("/b?a=" + a)
    JsonResult b(int a);*/

    @GetMapping("/provider/c/{a}")
    JsonResult c(@PathVariable("a") int a);
}
